package executor.service;

import java.lang.reflect.Method;
import java.util.concurrent.Callable;

public class ExecutorThread implements Callable<Object>{

	Method m;
	Object[] objects;
	Object i;
	
	
	
	
	public void setM(Method m) {
		this.m = m;
	}




	public void setObjects(Object[] objects) {
		this.objects = objects;
	}




	public void setI(Object i) {
		this.i = i;
	}




	@Override
	public Object call() throws Exception {
		return m.invoke(i,objects);
	}

}
